{% extends "layout.html" %}

    {% block content %}
        <div class="container">
            <div class="panel panel-default">
              <div class="panel-heading">
                <h3 class="panel-title">新增学生</h3>
              </div>
              <div class="panel-body">
                  <form method="post" novalidate>
                      {% for item in form %}
                          <div class="form-group">
                              <label>{{ item.label }}</label>
                              {{ item }}
                          <span style="color: red">{{ item.errors.0 }}</span>
                          </div>
                      {% endfor %}
                      <button type="submit" class="btn btn-primary">提 交</button>
                  </form>
              </div>
            </div>
        </div>
    {% endblock %}
